<template>
  <div>
    <p class="m-title">登录密码</p>
    <div class="m-trade">
      <w-form-validate>
        <div class="m-form">
          <div class="item">
            <span class="title">手机号码</span>
            <div class="a-input">
              <w-input :disabled="true" v-model="phone"></w-input>
            </div>
          </div>
          <div class="item">
            <span class="title" style="vertical-align: top;margin-top: 6px;">手机验证码</span>
            <div class="clearfix a-input">
              <div class="fl a-input" style="width: 260px">
                <w-input holder="请填写"></w-input>
              </div>
              <div class="fr">
                <w-button-timer></w-button-timer>
              </div>
            </div>
          </div>
          <div class="item">
            <span class="title">原密码</span>
            <div class="a-input">
              <w-input holder="6-16位字母、数字"></w-input>
            </div>
          </div>
          <div class="item">
            <span class="title">新密码</span>
            <div class="a-input">
              <w-input holder="6-16位字母、数字"></w-input>
            </div>
          </div>
          <div class="item">
            <span class="title">重复密码</span>
            <div class="a-input">
              <w-input holder="6-16位字母、数字"></w-input>
            </div>
          </div>
        </div>
        <div class="sub">
          <button class="btn main" type="submit">确定</button>
        </div>
      </w-form-validate>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      phone: '173****8989'
    }
  }
}
</script>

<style lang="scss">
.m-form {
  .btn-ghost {
    width: 90px;
    height: 30px;
    &.code {
      border-radius: 0;
      background: rgba(255,255,255,1);
      border: 1px solid rgba(42,152,215,1);
      color: #2A98D7;
    }
  }
  .form-control {
    height: 30px;
  }
  .w-input .error-tip {
    left: 0;
  }
  .form-control[disabled] {
    border: none;
    background: transparent;
    padding-left: 0
  }
}
.sub {
  .btn {
    width: 140px;
    height: 50px;
  }
}
</style>

<style lang="scss" scoped>
.m-title {
  font-size: 16px;
  margin-bottom: 20px; 
  font-weight: bold;
}
.m-form {    
  text-align: right;
  width: 52%;
  margin: 20px auto;
  .item {
    padding-bottom: 20px;
    &:last-child {
      padding-bottom: 0;
    }
    .title {
      font-size: 12px;
      text-align: right;
      padding-right: 20px;
      display: inline-block;
    }
    .a-input {
      width: 360px;
      display: inline-block;
    }
    .m-code {
      display: inline-block;
    }
  }
}
.sub {
  width: 140px;
  height: 50px;
  margin: 30px auto 0;
}
</style>
